home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / stty.z / stty
Text File  |  1998-10-20  |  20KB  |  331 lines

  1.  
  2.  
  3.  
  4. SSSSTTTTTTTTYYYY((((1111))))                                                                SSSSTTTTTTTTYYYY((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      stty - set the options for a terminal
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ssssttttttttyyyy [ ----aaaa ] [ ----gggg ] [ options ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _s_t_t_y sets certain terminal I/O options for the device that is the current
  16.      standard input; without arguments, it reports the settings of certain
  17.      options.
  18.  
  19.      In this report, if a character is preceded by a caret (^), then the value
  20.      of that option is the corresponding CTRL character (e.g., ``^^^^HHHH'' is
  21.      CCCCTTTTRRRRLLLL----HHHH ;;;; in this case, recall that CCCCTTTTRRRRLLLL----HHHH is the same as the
  22.      ``backspace'' key.)  The sequence ``^^^^'''''' means that an option has a null
  23.      value.  For example, normally ssssttttttttyyyy ----aaaa will report that the value of sssswwwwttttcccchhhh
  24.      is ``^^^^''''''; however, if _c_s_h(1) is used, sssswwwwttttcccchhhh will have the value ``^^^^ZZZZ''.
  25.  
  26.      ----aaaa   reports all of the option settings;
  27.  
  28.      ----gggg   reports current settings in a form that can be used as an argument
  29.           to another _s_t_t_y command; this does not include the rrrroooowwwwssss and ccccoooolllluuuummmmnnnnssss
  30.           values.
  31.  
  32.      Options in the last group are implemented using options in the previous
  33.      groups.  Note that many combinations of options make no sense, but no
  34.      sanity checking is performed.  The options are selected from the
  35.      following:
  36.  
  37.    CCCCoooonnnnttttrrrroooollll MMMMooooddddeeeessss
  38.      ppppaaaarrrreeeennnnbbbb (----ppppaaaarrrreeeennnnbbbb)
  39.                enable (disable) parity generation and detection.
  40.      ppppaaaarrrroooodddddddd (----ppppaaaarrrroooodddddddd)
  41.                select odd (even) parity.
  42.      ccccssss5555 ccccssss6666 ccccssss7777 ccccssss8888
  43.                select character size (see _t_e_r_m_i_o(7)).
  44.      0000         hang up phone line immediately.
  45.      111111110000 333300000000 666600000000 1111222200000000 1111888800000000 2222444400000000 4444888800000000 9999666600000000 11119999222200000000 33338888444400000000 55557777666600000000 111111115555222200000000 eeeettttcccc....
  46.                Set terminal input and output baud rate to the number given, if
  47.                possible.  (All speeds are not supported by all hardware
  48.                interfaces.)
  49.      iiiissssppppeeeeeeeedddd  (((( <<<<ssssppppeeeeeeeedddd>>>> ))))
  50.                where ssssppppeeeeeeeedddd is a baud rate as defined above, set only the input
  51.                baud rate to the given value, if possible (some hardware may
  52.                require the input and output baud rate to be the same). If the
  53.                speed specified is 0, set the input speed to match the output
  54.                speed.
  55.      oooossssppppeeeeeeeedddd  (((( <<<<ssssppppeeeeeeeedddd>>>> ))))
  56.                where ssssppppeeeeeeeedddd is a baud rate as defined above, set only the
  57.                output baud rate to the given value, if possible (some hardware
  58.                may require the input and output baud rate to be the same). If
  59.                the speed specified is 0, a hangup is generated.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSTTTTTTTTYYYY((((1111))))                                                                SSSSTTTTTTTTYYYY((((1111))))
  71.  
  72.  
  73.  
  74.      hhhhuuuuppppccccllll (----hhhhuuuuppppccccllll)
  75.                hang up (do not hang up) serial-line connections on last close.
  76.      hhhhuuuupppp (----hhhhuuuupppp)
  77.                same as hhhhuuuuppppccccllll (----hhhhuuuuppppccccllll).
  78.      ccccssssttttooooppppbbbb (----ccccssssttttooooppppbbbb)
  79.                use two (one) stop bits per character.
  80.      ccccrrrreeeeaaaadddd (----ccccrrrreeeeaaaadddd)
  81.                enable (disable) the receiver.
  82.      ccccllllooooccccaaaallll (----ccccllllooooccccaaaallll)
  83.                assume a line without (with) modem control.
  84.      ccccnnnneeeewwww____rrrrttttssssccccttttssss (----ccccnnnneeeewwww____rrrrttttssssccccttttssss)
  85.                enable (disable) RTS/CTS flow control.
  86.      lllloooobbbbllllkkkk (----lllloooobbbbllllkkkk)
  87.                block (do not block) output from a background job.
  88.      ttttoooossssttttoooopppp (----ttttoooossssttttoooopppp)
  89.                block (do not block) output from a background job (same as
  90.                lllloooobbbbllllkkkk).
  91.  
  92.    IIIInnnnppppuuuutttt MMMMooooddddeeeessss
  93.      iiiiggggnnnnbbbbrrrrkkkk (----iiiiggggnnnnbbbbrrrrkkkk)
  94.                ignore (do not ignore) break on input.
  95.      bbbbrrrrkkkkiiiinnnntttt (----bbbbrrrrkkkkiiiinnnntttt)
  96.                signal (do not signal) INTR on break.
  97.      iiiiggggnnnnppppaaaarrrr (----iiiiggggnnnnppppaaaarrrr)
  98.                ignore (do not ignore) parity errors.
  99.      ppppaaaarrrrmmmmrrrrkkkk (----ppppaaaarrrrmmmmrrrrkkkk)
  100.                mark (do not mark) parity errors (see _t_e_r_m_i_o(7)).
  101.      iiiinnnnppppcccckkkk (----iiiinnnnppppcccckkkk)
  102.                enable (disable) input parity checking.
  103.      iiiissssttttrrrriiiipppp (----iiiissssttttrrrriiiipppp)
  104.                strip (do not strip) input characters to seven bits.
  105.      iiiinnnnllllccccrrrr (----iiiinnnnllllccccrrrr)
  106.                map (do not map) NL to CR on input.
  107.      iiiiggggnnnnccccrrrr (----iiiiggggnnnnccccrrrr)
  108.                ignore (do not ignore) CR on input.
  109.      iiiiccccrrrrnnnnllll (----iiiiccccrrrrnnnnllll)
  110.                map (do not map) CR to NL on input.
  111.      iiiiuuuuccccllllcccc (----iiiiuuuuccccllllcccc)
  112.                map (do not map) upper-case alphabetics to lower case on input.
  113.      iiiixxxxoooonnnn (----iiiixxxxoooonnnn)
  114.                enable (disable) START/STOP output control.  Output is stopped
  115.                by sending the stop character (default is CTRL-S) and started
  116.                by sending the start character (default is CTRL-Q).
  117.      iiiixxxxaaaannnnyyyy (----iiiixxxxaaaannnnyyyy)
  118.                allow any character (only the start character like CTRL-Q) to
  119.                restart output.
  120.      ddddeeeeccccccccttttllllqqqq (----ddddeeeeccccccccttttllllqqqq)
  121.                allow only the start character like CTRL-Q (allow any
  122.                character) to restart output.  An alias for ----iiiixxxxaaaannnnyyyy.
  123.      iiiixxxxooooffffffff (----iiiixxxxooooffffffff)
  124.                request that the system send (not send) START/STOP characters
  125.                when the input queue is nearly empty/full.
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. SSSSTTTTTTTTYYYY((((1111))))                                                                SSSSTTTTTTTTYYYY((((1111))))
  137.  
  138.  
  139.  
  140.      iiiimmmmaaaaxxxxbbbbeeeellll (----iiiimmmmaaaaxxxxbbbbeeeellll)
  141.                echo BBBBEEEELLLL if the input stream overflows.
  142.  
  143.    OOOOuuuuttttppppuuuutttt MMMMooooddddeeeessss
  144.      ooooppppoooosssstttt (----ooooppppoooosssstttt)
  145.                post-process output (do not post-process output; ignore all
  146.                other output modes).
  147.      oooollllccccuuuucccc (----oooollllccccuuuucccc)
  148.                map (do not map) lower-case alphabetics to upper case on
  149.                output.
  150.      oooonnnnllllccccrrrr (----oooonnnnllllccccrrrr)
  151.                map (do not map) NL to CR-NL on output.
  152.      ooooccccrrrrnnnnllll (----ooooccccrrrrnnnnllll)
  153.                map (do not map) CR to NL on output.
  154.      oooonnnnooooccccrrrr (----oooonnnnooooccccrrrr)
  155.                do not (do) output CRs at column zero.
  156.      oooonnnnllllrrrreeeetttt (----oooonnnnllllrrrreeeetttt)
  157.                on the terminal NL performs (does not perform) the CR function.
  158.      ooooffffiiiillllllll (----ooooffffiiiillllllll)
  159.                use fill characters (use timing) for delays.
  160.      ooooffffddddeeeellll (----ooooffffddddeeeellll)
  161.                fill characters are DELs (NULs).
  162.      ccccrrrr0000 ccccrrrr1111 ccccrrrr2222 ccccrrrr3333
  163.                select style of delay for carriage returns (see _t_e_r_m_i_o(7)).
  164.      nnnnllll0000 nnnnllll1111   select style of delay for line-feeds (see _t_e_r_m_i_o(7)).
  165.      ttttaaaabbbb0000 ttttaaaabbbb1111 ttttaaaabbbb2222 ttttaaaabbbb3333
  166.                select style of delay for horizontal tabs (see _t_e_r_m_i_o(7)).
  167.      bbbbssss0000 bbbbssss1111   select style of delay for backspaces (see _t_e_r_m_i_o(7)).
  168.      ffffffff0000 ffffffff1111   select style of delay for form-feeds (see _t_e_r_m_i_o(7)).
  169.      vvvvtttt0000 vvvvtttt1111   select style of delay for vertical tabs (see _t_e_r_m_i_o(7)).
  170.  
  171.    LLLLooooccccaaaallll MMMMooooddddeeeessss
  172.      iiiissssiiiigggg (----iiiissssiiiigggg)
  173.                enable (disable) the checking of characters against the special
  174.                control characters INTR, QUIT and SWTCH.
  175.      iiiiccccaaaannnnoooonnnn (----iiiiccccaaaannnnoooonnnn)
  176.                enable (disable) canonical input (ERASE and KILL processing).
  177.      xxxxccccaaaasssseeee (----xxxxccccaaaasssseeee)
  178.                canonical (unprocessed) upper/lower-case presentation.
  179.      eeeecccchhhhoooo (----eeeecccchhhhoooo)
  180.                echo back (do not echo back) every character typed.
  181.      eeeecccchhhhooooeeee (----eeeecccchhhhooooeeee)
  182.                echo (do not echo) ERASE character as a backspace-space-
  183.                backspace string.  Note: this mode will erase the ERASEed
  184.                character on many CRT terminals; however, it does _n_o_t keep
  185.                track of column position and, as a result, may be confusing on
  186.                escaped characters, tabs, and backspaces.
  187.      eeeecccchhhhooookkkk (----eeeecccchhhhooookkkk)
  188.                echo (do not echo) NL after KILL character.
  189.      llllffffkkkkcccc (----llllffffkkkkcccc)
  190.                the same as eeeecccchhhhooookkkk (----eeeecccchhhhooookkkk); obsolete.
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. SSSSTTTTTTTTYYYY((((1111))))                                                                SSSSTTTTTTTTYYYY((((1111))))
  203.  
  204.  
  205.  
  206.      eeeecccchhhhooookkkkeeee (----eeeecccchhhhooookkkkeeee)
  207.                echo (do not echo) the KILL character by erasing each character
  208.                on the line from the screen (using the mechanism selected by
  209.                eeeecccchhhhooooeeee and eeeecccchhhhoooopppprrrrtttt).
  210.      eeeecccchhhhooooccccttttllll (----eeeecccchhhhooooccccttttllll)
  211.                Echo (do not echo) control characters as ^char, delete as ^?.
  212.      eeeecccchhhhoooopppprrrrtttt (----eeeecccchhhhoooopppprrrrtttt)
  213.                Echo (do not echo) erase character as character erased.
  214.      eeeecccchhhhoooonnnnllll (----eeeecccchhhhoooonnnnllll)
  215.                echo (do not echo) NL.
  216.      nnnnooooffffllllsssshhhh (----nnnnooooffffllllsssshhhh)
  217.                disable (enable) flush after INTR, QUIT or SWTCH.
  218.      fffflllluuuusssshhhhoooo (----fffflllluuuusssshhhhoooo)
  219.                If set, data written to the terminal is discarded.  This bit is
  220.                automatically set when the flush/discard control-character (see
  221.                below) is typed.  This bit is automatically cleared by
  222.                subsequent input from the terminal.
  223.      ppppeeeennnnddddiiiinnnn (----ppppeeeennnnddddiiiinnnn)
  224.                Retype pending input at next read or input char then
  225.                automatically clear ppppeeeennnnddddiiiinnnn.
  226.  
  227.    CCCCoooonnnnttttrrrroooollll AAAAssssssssiiiiggggnnnnmmmmeeeennnnttttssss
  228.      lllliiiinnnneeee _i    set the line discipline to 0 (standard System V discipline) or
  229.                1 (4.3BSD _c_s_h(1) discipline).
  230.      rrrroooowwwwssss _n    set the number of rows for the terminal, used by some screen
  231.                oriented programs.  This is currently supported only on pty
  232.                devices.
  233.      ccccoooollllssss _n    (or ccccoooolllluuuummmmnnnnssss) set the number of columns for the terminal, used
  234.                by some screen oriented programs.  This is currently supported
  235.                only on pty devices.
  236.      _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r _c
  237.                set _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r to _c, where _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r is iiiinnnnttttrrrr,
  238.                qqqquuuuiiiitttt, eeeerrrraaaasssseeee, eeeeooooffff, eeeeoooollll, oooolllldddd----sssswwwwttttcccchhhh, mmmmiiiinnnn, or ttttiiiimmmmeeee.  (mmmmiiiinnnn and ttttiiiimmmmeeee
  239.                are used with ----iiiiccccaaaannnnoooonnnn; see _t_e_r_m_i_o(7)).  If line discipline is
  240.                set to 1, the following _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r_s can be set:  llllnnnneeeexxxxtttt,
  241.                wwwweeeerrrraaaasssseeee, rrrrpppprrrrnnnntttt, fffflllluuuusssshhhh (a.k.a. ddddiiiissssccccaaaarrrrdddd), ssssttttoooopppp, If _c is preceded
  242.                by an (escaped from the shell) caret (^^^^), then the value used
  243.                is the corresponding CTRL character (e.g., ``^^^^DDDD'' is a CCCCTTTTRRRRLLLL----DDDD);
  244.                ``^^^^????''  is interpreted as DEL and ``^^^^----'' or ``uuuunnnnddddeeeeffff'' is
  245.                interpreted as undefined. In the case of mmmmiiiinnnn and ttttiiiimmmmeeee , the
  246.                numerical argument is interpreted as a literal value rather
  247.                than as an ascii character.
  248.  
  249.    CCCCoooommmmbbbbiiiinnnnaaaattttiiiioooonnnn MMMMooooddddeeeessss
  250.      eeeevvvveeeennnnpppp or ppppaaaarrrriiiittttyyyy
  251.                enable ppppaaaarrrreeeennnnbbbb and ccccssss7777.
  252.      ooooddddddddpppp      enable ppppaaaarrrreeeennnnbbbb, ccccssss7777, and ppppaaaarrrroooodddddddd.
  253.      ----ppppaaaarrrriiiittttyyyy, ----eeeevvvveeeennnnpppp, or ----ooooddddddddpppp
  254.                disable ppppaaaarrrreeeennnnbbbb, and set ccccssss8888.
  255.      rrrraaaawwww (----rrrraaaawwww or ccccooooooookkkkeeeedddd)
  256.                enable (disable) raw input and output (no ERASE, KILL, INTR,
  257.                QUIT, SWTCH, EOT, or output post processing).
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. SSSSTTTTTTTTYYYY((((1111))))                                                                SSSSTTTTTTTTYYYY((((1111))))
  269.  
  270.  
  271.  
  272.      iiiieeeexxxxtttteeeennnn (----iiiieeeexxxxtttteeeennnn)
  273.                Enable (disable) any implementation-dependent special control
  274.                characters not currently controlled by icanon, isig, ixon or
  275.                ixoff.
  276.      nnnnllll (----nnnnllll)  set (unset) iiiiccccrrrrnnnnllll....  In addition ----nnnnllll unsets iiiinnnnllllccccrrrr, iiiiggggnnnnccccrrrr....
  277.      llllccccaaaasssseeee (----llllccccaaaasssseeee)
  278.                set (unset) xxxxccccaaaasssseeee, iiiiuuuuccccllllcccc, and oooollllccccuuuucccc.
  279.      LLLLCCCCAAAASSSSEEEE (----LLLLCCCCAAAASSSSEEEE)
  280.                same as llllccccaaaasssseeee (----llllccccaaaasssseeee).
  281.      ttttaaaabbbbssss (----ttttaaaabbbbssss or ttttaaaabbbb3333)
  282.                preserve (expand to spaces) tabs when printing.
  283.      eeeekkkk        reset ERASE and KILL characters back to normal ^^^^HHHH and ^^^^UUUU.
  284.      ssssaaaannnneeee      resets all modes to some reasonable values.
  285.      ddddeeeecccc       ERASE, KILL, and INTR characters set to ^^^^????, ^^^^UUUU, and ^^^^CCCC; eeeecccchhhhooooeeee
  286.                and eeeecccchhhhooookkkk set; iiiixxxxaaaannnnyyyy unset.
  287.      tttteeeerrrrmmmm      set all modes suitable for the terminal type _t_e_r_m, where _t_e_r_m
  288.                is one of ttttttttyyyy33333333, ttttttttyyyy33337777, vvvvtttt00005555, ttttnnnn333300000000, ttttiiii777700000000, or tttteeeekkkk.
  289. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  290.      tabs(1), ioctl(2), termio(7)
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.